import request from './request.js'

export function getSongsCatList () {
  return request.get('/playlist/catlist')
}

export function getHotSongsCatList () {
  return request.get('/playlist/hot')
}

export function getSongsList (order, cat) {
  return request.get('/top/playlist', {
    params: {
      order: order,
      cat: cat,
      limit: 100,
      offset: 1
    }
  })
}

export function getHighQualityTags () {
  return request.get('/playlist/highquality/tags')
}

export function getHighQualityList (cat, updateTime) {
  return request.get('/top/playlist/highquality', {
    params: {
      cat: cat,
      limit: 100,
      before: updateTime
    }
  })
}
